package com.kidfit.client;

import com.extjs.gxt.ui.client.data.BaseModel;

@SuppressWarnings("serial")
public class Child extends BaseModel {
	public Child() {}
	
	public Child(int rank, String name, int tPoints, String time, int points, String level) {
		set("rank", rank);
		set("name", name);
		set("points", tPoints);
		set("time", time);
		set("today", points);
		set("level", level);
	}
	
	public int getRank() {
		Integer open = (Integer) get("rank");
		return open.intValue();
	}
	
	public String getName() {
		return (String) get("name");
	}
	
	public int getPoints() {
		Integer open = (Integer) get("points"); 
		return open.intValue();
	}
	
	public String getTime() {
		return (String) get("time");
	}
	
	public int getToday() {
		Integer open = (Integer) get("today"); 
		return open.intValue();
	}
	
	public String getLevel() {
		return (String) get("level");
	}
	
	public String toString() {
		return getName();
	}
}
